<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
      var myJson={
        "key1":"ok",
        "key2":123,
        "key3":[1,"hello",2.3],
        "key4":{"age":12,"name":"jack"},
        "key5":[
                {"k1":10,"k2":"milan"},
                {"k3":30,"k4":"smith"}]
      }
      //1.去除key1
      console.log("key1= ",myJson.key1)
      //2.去除key3  返回array
      console.log("key1= ",myJson.key3)
      //3.对key3遍历
      for (var i = 0; i < myJson.key3.length; i++) {
        console.log("key3的第%i个元素 ",i,myJson.key3[i]);
      }
      //3.取出key5
      console.log("key5= ",myJson.key5,"k4= ",myJson.key5[1].k4)
    </script>
</head>
<body>
<h1>json连线</h1>
<hr>
</body>
</html>